import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/Index.vue'
import XianjiaStore from './views/XianjiaStore.vue'
import SroreTab1 from './views/SroreTab1.vue'
import SroreTab2 from './views/SroreTab2.vue'
import SroreTab3 from './views/SroreTab3.vue'
import GoodsDetail from './views/GoodsDetail.vue'
import Find from './views/Find.vue'
import FoodList from './views/FoodList.vue'
import Recommend from './views/Recommend.vue'
import Makeup from './views/Makeup.vue'
import Life from './views/Life.vue'
import Login from './views/Login.vue'

import Buy from './views/Buy.vue'
import List from './views/List.vue'
import Mine from './views/Mine.vue'
import A from './views/A.vue'
import B from './views/B.vue'
import { Store } from 'vuex';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'index',
      component: Index
    },
    {
      path: '/index/xianjiastore',
      name: 'XianjiaStore',
      component: XianjiaStore,
      props:true,
      children:[
        { 
          path: '/storetab1',
          name: 'SroreTab1',
          component: SroreTab1,
        },
        {
          path: '/storetab2',
          name: 'SroreTab2',
          component: SroreTab2
        },
        {
          path: '/storetab3',
          name: 'SroreTab3',
          component: SroreTab3
        },
      ]
    },
    {
      path: '/index/xianjiastore/detail',
      name: 'GoodsDetail',
      component: GoodsDetail
    },
    {
      path: '/find',
      name: 'find',
      component: Find,
      
    },
    {
      path: '/find/foodlist',
      name: 'foodlist',
      component: FoodList,
      
    },
    {
      path: '/find/recommend',
      name: 'recommend',
      component: Recommend,
      
    },
    {
      path: '/find/makeup',
      name: 'makeup',
      component: Makeup,
      
    },
    {
      path: '/find/life',
      name: 'life',
      component: Life,
      
    },
    {
      path: '/buy',
      name: 'buy',
      component: Buy
    },
    {
      path: '/list',
      name: 'list',
      component: List,
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '*',
      // name: 'index',
      component: Index
    },
    {
      path: '/b',
      name: 'b',
      component: B
    },
  ]
})
